const Mock = require('mockjs')

const data = Mock.mock({
  'list|15': [{
    id: '@id',
    code: '@guid',
    typeName: '@ctitle(2, 5)',
    'status|1': ['0', '1'],
    ip: '@ip',
    title: '@csentence(3, 10)',
    username: '@cname',
    date: '@datetime',
    content: '@cword(100)'
  }]
})

module.exports = [
  {
    url: '/file/type/list',
    type: 'get',
    response: params => {
      return {
        code: 20000,
        data
      }
    }
  }
]
